package com.codemeta.bokit.sample.standard.app.mbr.controller;

import com.codemeta.bokit.sample.standard.app.mbr.entity.MbrUser;
import com.codemeta.bokit.sample.standard.app.mbr.service.MbrUserService;
import java.util.List;
import lombok.AllArgsConstructor;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author hice
 * @date 2021/11/22
 */
@Validated
@RestController
@RequestMapping("/mbr/user")
@AllArgsConstructor
public class MbrUserController {

    private final MbrUserService mbrUserService;

    @GetMapping("/list")
    public List<MbrUser> list() {
        return mbrUserService.list();
    }
}